//
//  Brands_BrandsMainBrandList_CollectionViewCell_WX.m
//  ZITHER
//
//  Created by weixin on 2019/4/8.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "Brands_BrandsMainBrandList_CollectionViewCell_WX.h"


@implementation Brands_BrandsMainBrandList_CollectionViewCell_WX


- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = RandomColor;
        [self addSubview:self.TB];
        
        [self.TB mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.top.bottom.equalTo(self).offset(0);
        }];
        
    }
    return self;
}

-(void)setIndexTbv:(NSInteger)indexTbv{
    _indexTbv = indexTbv;
    
//    self.TB.indexTbv = indexTbv;
}

- (Brands_BrandsMainBrandList_Tbv_WX *)TB{
    if (!_TB) {
        _TB = [[Brands_BrandsMainBrandList_Tbv_WX alloc]initializeFrame:CGRectMake(0, 0, 1, 1) isMj:0 isEstimatedRowHeight:YES addRegisterNib:@[@"Brands_BrandsMainBrandList_Cell_WX"]];
    }
    return _TB;
}
@end
